import QtQuick 2.0
//参考博文：
//版权声明：本文为博主原创文章，遵循 CC 4.0 BY-SA 版权协议，转载请附上原文出处链接和本声明。
//本文链接：https://blog.csdn.net/papership/article/details/97140291

Item {
    width: 250
    height: 30
    Timer {
        interval:500
        running:true
        repeat: true
        onTriggered: time.text = Qt.formatDateTime(new Date(),"yy-MM-dd hh:mm:ss")
    }
    Text{
        id:time
        //color:"white"
        font.pixelSize: 16

        anchors{
            verticalCenter: parent.verticalCenter
        }
    }
}
